#!/usr/bin/env python
#coding:utf-8
# author : wangwei
# mail   ：alsww@qq.com
# oldboy s10 python training
import time

def cashIn(n,m):
    print "您好 %s, 您当前账户目前有 %d 元." %(n,m)
    cash = int(raw_input("请输入您要存入的金额 :"))
    m = m + cash
    cashinInfo(n,cash)
    return m

def cashinInfo(user,cashin):
    transfer_time=time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time()))
    p = "record_list.txt"
    f = open(p,'a')
    f.write("%s|%s|cashin|%d|0  \n"  %(user,transfer_time,cashin))
    f.close()